import React, {Component} from "react";
import { Button } from 'antd'

import './index.less'

class NotFound extends Component {
  // 返回首页
  backHome = () => {
    this.props.history.push('/login')
  }
  // 返回上一级
  backPre = () => {
    this.props.history.goBack()
  }

  render() {
    return (
        <div className="NotFound_container">
          <div className="operation">
          <Button type='primary' onClick={this.backHome}>回到首页</Button>
          <Button type='link' className='back' onClick={this.backPre}>回到上一页</Button>
          </div>
        </div>
    );
  }
}

export default NotFound